<template>
  <div id="userLayout">
    <a-layout style="min-height: 100vh">
      <a-layout-header>
        <div class="logodiv">
          <a href="/">
            <img class="logo" src="../assets/logo_joj.png" />
          </a>
        </div>
      </a-layout-header>
      <a-layout-content class="content">
        <div class="contentdiv">
          <router-view></router-view>
        </div>
      </a-layout-content>
      <a-layout-footer class="footer">
        <a href="">joj-oi</a> by jyb
      </a-layout-footer>
    </a-layout>
  </div>
</template>

<script>
export default {
  components: {},
};
</script>

<style scoped>
#userLayout {
}

#userLayout .header {
  margin-bottom: 10px;
  box-shadow: #eee 1px 1px 5px;
}

#userLayout .content {
  /*background: linear-gradient(to right, #aaa, #fff);*/
  margin-bottom: 16px;
  padding: 20px;
}

#userLayout {
  background-image: url("../assets/background.jpg");
  background-size: cover;
}

#userLayout .footer {
  background: #efefef;
  padding: 16px;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  /*文字居中*/
  text-align: center;
}

.logo {
  height: 56px;
}

.logodiv {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 100px;
}

.contentdiv {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
</style>
